package lumingweihua.future.cn.lumingweihua.person.domain;

/**
 * Created by Administrator on 2018/3/5.
 */

public class PersonData {
    private String approve;//货主认证1待审核2已认证 3认证失败 4从未认证
    private String carAuth;//车辆认证 1已认证
    private String inviteTime;//邀请次数

    public boolean getIsFinishDriverAuth() {
        return "2".equals(approve);
    }

    public void setIsFinishDriverAuth(String isFinishDriverAuth) {
        this.approve = isFinishDriverAuth;
    }

    public boolean getIsFinishCarAuth() {
        return "1".equals(carAuth);
    }

    public void setIsFinishCarAuth(String isFinishCarAuth) {
        this.carAuth = isFinishCarAuth;
    }

    public int getInviteTime() {
        int t = 0;
        try {
            t = Integer.valueOf(inviteTime);
        } catch (Exception e) {
            // TODO: handle exception
        }
        return t;
    }

    public void setInviteTime(String inviteTime) {
        this.inviteTime = inviteTime;
    }
}
